<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php session_start(); 
ob_start();
?>
<html>
    <head>
        <title>tan</title>
        <link href="public/css/css.css" rel="stylesheet" type="text/css">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body>
        <div id="wrapper">
            <div id="baner">

                <img src="public/image/logo.png">

            </div>
            <div id='boder_menu'>
                <ul>

                    <li><a href="#">HOME</a></li>
                    <li><a href="#">CONTENT</a></li>
                    <li><a href="#">FORUMS</a></li>
                    <li><a href="#">CONTACT</a></li>
                    <li class='last'><a href='index.php?logout=true'><span>Logout</span></a></li>
                </ul>
            </div>
            <div id="col_left">


                <div class="logo">
                      
                    <a href="login.php"><h4 align="right">Back</h4></a>
                <?php
                require_once 'model/works.php';
                $worker = new Works();
                $work = $worker->select_edit(NULL, $_GET['id']);
                ?>
                <form  action="view.php?id=<?php echo $_GET["id"] ?>" method="post" enctype="multipart/form-data">
                    <fieldset style="border: 2px #009999 solid">
                        <legend style="border: 3px #009999 solid; background: #f96e5b; color: white">
                            View
                        </legend>
                        <table style="width: 800px">
                            <tr class="bgtable2">
                                <th>Ten cong viec</th>
                                <td><?php echo $work["name"] ?></td>
                            </tr>
                            <tr class="bgtable2">
                                <th>Ngay dang</th>
                                <td><?php $mydate = getdate($work['posted']); ?> 
                                    <?php echo "$mydate[mday] $mydate[month], $mydate[year]"; ?></td>
                            </tr>
                            <tr class="bgtable2">
                                <th>Lam Viec tai</th>
                                <td><?php echo $work["location"] ?></td>
                            </tr>
                            <tr class="bgtable2">
                                <th>Ten cong ty</th>
                                <td><?php echo $work["company_name"] ?></td>
                            </tr>
                            <tr class="bgtable2">
                                <th>Dia chi</th>
                                <td><?php echo $work["company_address"] ?></td>
                            </tr>
                            <tr class="bgtable2">    
                                <th>Mo ta</th>
                                <td><?php echo $work["description"] ?></td>
                            </tr>
                            <tr class="bgtable2">
                                <th>Dieu kien</th>
                                <td><?php echo $work["experience_requirements"] ?></td>
                            </tr>
                            <tr class="bgtable2">
                                <th>Lien he</th>
                                <td><?php echo $work["company_profile"] ?></td>
                            </tr>
                            <tr class="bgtable2">
                                <th>Hinh anh</th>
                                <td><img src="<?php echo $work['image']?>" width="100px" height="100px"></td>
                            </tr>
                                         
                        </table>
                    </fieldset>
                </form>
               
                    <br>
              
                    <br>

                </div>



            </div>
           

            
        <?php
        // put your code here
        ?>
    </body>
</html>
